package com.ruoyi.constant;

/**
 * 矿山图层问题类型枚举
 */
public enum KsTcWtlxEnum {

    LX1("A1", "无证勘查"),
    LX2("A2", "越界勘查"),
    LX3("A3", "擅自改变勘查对象"),
    LX4("01", "无证开采"),
    LX5("02", "疑似越界开采"),
    LX6("03", "擅自改变开采矿种"),
    LX7("05", "疑似以采代探"),
    LX8("10", "疑似擅自改变开采方式"),
    LX9("12", "其他"),
    LX10("13", "界内");

    private String code;
    private String desc;

    KsTcWtlxEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByCode(String code) {
        for (KsTcWtlxEnum value : KsTcWtlxEnum.values()) {
            if (value.getCode().equals(code)) {
                return value.getDesc();
            }
        }
        return "";
    }
}
